var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "msg": "OK",
        "code": 0,
        "data": {
            "field": [
                {
                    "id": "code",
                    "name": "代码"
                },
                {
                    "id": "name",
                    "name": "名称"
                },
                {
                    "id": "holdingNumber",
                    "name": "持仓数量"
                },
                {
                    "id": "marketValue",
                    "name": "持仓市值"
                },
                {
                    "id": "netValueRatio",
                    "name": "占净值比例"
                },
                {
                    "id": "closingPrice",
                    "name": "前一日收盘价"
                },
                {
                    "id": "averageBuildingCost",
                    "name": "平均建仓成本"
                },
                {
                    "id": "buildingDate",
                    "name": "建仓日期"
                },
                {
                    "id": "exchange",
                    "name": "交易所"
                }
            ],
            "list|12": [
                {
                    "code|+1": 1,
                    "name": "国农科技",
                    "holdingNumber": 4500,
                    "marketValue": 13.51,
                    "netValueRatio": 0.0039,
                    "closingPrice": 34.55,
                    "averageBuildingCost": 32.19,
                    "buildingDate": "2016-02-08",
                    "exchange": "深圳交易所"
                }
            ]
        }
    })
}